<?php


function dir_getFileList($path) {
	if (empty($path) ||	!file_exists($path)) {
		return false;
	}

	$fileList = scandir($path);

	if (false == $fileList) {
		return false;
	}

	foreach ($fileList as $key => $value) {
		if (!is_file($path .DS. $value)) {
			unset($fileList[$key]);
		} else {
			$fileList[$key] = $path .DS. $value;
		}
	}

	return $fileList;
}	
